﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002A9 RID: 681
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueRollDiceScRsp : IMessage<ChessRogueRollDiceScRsp>, IMessage, IEquatable<ChessRogueRollDiceScRsp>, IDeepCloneable<ChessRogueRollDiceScRsp>, IBufferMessage
	{
		// Token: 0x170008DB RID: 2267
		// (get) Token: 0x06001E7C RID: 7804 RVA: 0x00056DFF File Offset: 0x00054FFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueRollDiceScRsp> Parser
		{
			get
			{
				return ChessRogueRollDiceScRsp._parser;
			}
		}

		// Token: 0x170008DC RID: 2268
		// (get) Token: 0x06001E7D RID: 7805 RVA: 0x00056E06 File Offset: 0x00055006
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueRollDiceScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170008DD RID: 2269
		// (get) Token: 0x06001E7E RID: 7806 RVA: 0x00056E18 File Offset: 0x00055018
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueRollDiceScRsp.Descriptor;
			}
		}

		// Token: 0x06001E7F RID: 7807 RVA: 0x00056E1F File Offset: 0x0005501F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueRollDiceScRsp()
		{
		}

		// Token: 0x06001E80 RID: 7808 RVA: 0x00056E28 File Offset: 0x00055028
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueRollDiceScRsp(ChessRogueRollDiceScRsp other) : this()
		{
			this.oPOJBBKEDBL_ = other.oPOJBBKEDBL_;
			this.retcode_ = other.retcode_;
			this.rogueDiceInfo_ = ((other.rogueDiceInfo_ != null) ? other.rogueDiceInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001E81 RID: 7809 RVA: 0x00056E80 File Offset: 0x00055080
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueRollDiceScRsp Clone()
		{
			return new ChessRogueRollDiceScRsp(this);
		}

		// Token: 0x170008DE RID: 2270
		// (get) Token: 0x06001E82 RID: 7810 RVA: 0x00056E88 File Offset: 0x00055088
		// (set) Token: 0x06001E83 RID: 7811 RVA: 0x00056E90 File Offset: 0x00055090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint OPOJBBKEDBL
		{
			get
			{
				return this.oPOJBBKEDBL_;
			}
			set
			{
				this.oPOJBBKEDBL_ = value;
			}
		}

		// Token: 0x170008DF RID: 2271
		// (get) Token: 0x06001E84 RID: 7812 RVA: 0x00056E99 File Offset: 0x00055099
		// (set) Token: 0x06001E85 RID: 7813 RVA: 0x00056EA1 File Offset: 0x000550A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170008E0 RID: 2272
		// (get) Token: 0x06001E86 RID: 7814 RVA: 0x00056EAA File Offset: 0x000550AA
		// (set) Token: 0x06001E87 RID: 7815 RVA: 0x00056EB2 File Offset: 0x000550B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDiceInfo RogueDiceInfo
		{
			get
			{
				return this.rogueDiceInfo_;
			}
			set
			{
				this.rogueDiceInfo_ = value;
			}
		}

		// Token: 0x06001E88 RID: 7816 RVA: 0x00056EBB File Offset: 0x000550BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueRollDiceScRsp);
		}

		// Token: 0x06001E89 RID: 7817 RVA: 0x00056ECC File Offset: 0x000550CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueRollDiceScRsp other)
		{
			return other != null && (other == this || (this.OPOJBBKEDBL == other.OPOJBBKEDBL && this.Retcode == other.Retcode && object.Equals(this.RogueDiceInfo, other.RogueDiceInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001E8A RID: 7818 RVA: 0x00056F2C File Offset: 0x0005512C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.OPOJBBKEDBL != 0U)
			{
				num ^= this.OPOJBBKEDBL.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueDiceInfo_ != null)
			{
				num ^= this.RogueDiceInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001E8B RID: 7819 RVA: 0x00056F9A File Offset: 0x0005519A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001E8C RID: 7820 RVA: 0x00056FA2 File Offset: 0x000551A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001E8D RID: 7821 RVA: 0x00056FAC File Offset: 0x000551AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.OPOJBBKEDBL != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.OPOJBBKEDBL);
			}
			if (this.rogueDiceInfo_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.RogueDiceInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001E8E RID: 7822 RVA: 0x00057024 File Offset: 0x00055224
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.OPOJBBKEDBL != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.OPOJBBKEDBL);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueDiceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueDiceInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001E8F RID: 7823 RVA: 0x00057094 File Offset: 0x00055294
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueRollDiceScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.OPOJBBKEDBL != 0U)
			{
				this.OPOJBBKEDBL = other.OPOJBBKEDBL;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueDiceInfo_ != null)
			{
				if (this.rogueDiceInfo_ == null)
				{
					this.RogueDiceInfo = new ChessRogueDiceInfo();
				}
				this.RogueDiceInfo.MergeFrom(other.RogueDiceInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001E90 RID: 7824 RVA: 0x00057110 File Offset: 0x00055310
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001E91 RID: 7825 RVA: 0x0005711C File Offset: 0x0005531C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 114U)
					{
						if (num != 120U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.rogueDiceInfo_ == null)
						{
							this.RogueDiceInfo = new ChessRogueDiceInfo();
						}
						input.ReadMessage(this.RogueDiceInfo);
					}
				}
				else
				{
					this.OPOJBBKEDBL = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000C8F RID: 3215
		private static readonly MessageParser<ChessRogueRollDiceScRsp> _parser = new MessageParser<ChessRogueRollDiceScRsp>(() => new ChessRogueRollDiceScRsp());

		// Token: 0x04000C90 RID: 3216
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000C91 RID: 3217
		public const int OPOJBBKEDBLFieldNumber = 8;

		// Token: 0x04000C92 RID: 3218
		private uint oPOJBBKEDBL_;

		// Token: 0x04000C93 RID: 3219
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04000C94 RID: 3220
		private uint retcode_;

		// Token: 0x04000C95 RID: 3221
		public const int RogueDiceInfoFieldNumber = 14;

		// Token: 0x04000C96 RID: 3222
		private ChessRogueDiceInfo rogueDiceInfo_;
	}
}
